<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--
Copyright 2006-2008 TIBCO Software Inc.

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>Test Dialog Alerts</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<caption>Test dialogs, alerts, and confirmation dialog assertion and canel commands</caption>
<tbody>
    <tr>
      <td rowspan="1" colspan="3">Test sample-dialog alerts and confirmation<br>
      </td>
    </tr>
   <tr>
      <td>include</td>
      <td>testSetup.html</td>
      <td>&nbsp;</td>
    </tr>

    <tr>
      <td>jsxopen</td>
      <td>${GIPATH}/shell.html?jsxapppath=${SAMPLESPATH}/sample-dialogs</td>
      <td>&nbsp;</td>
    </tr>
     <tr>
      <td>waitForJsxButtonPresent</td>
      <td>Alerts</td>
       <td>5000</td>
     </tr>    
    <tr>
      <td>assertJsxButtonPresent</td>
      <td>Alerts</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>checkJsx</td>
      <td>JsxName=chkDocPane</td>
      <td>&nbsp;</td>
    </tr>	
    <tr>
      <td>click</td>
      <td>JsxButtonText=Alerts</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>assertElementPresent</td>
      <td>JsxStackText=Server Alert</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>click</td>
      <td>JsxButtonText=Alert</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>waitForElementPresent</td>
      <td>JsxAlertCaption="My Alert"</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>assertJsxAlertOK</td>
      <td>My Alert</td>
      <td>&nbsp;</td>
    </tr>    
  
    <tr>
      <td>assertElementPresent</td>
      <td>JsxStackText=Confirm and Prompt Alerts*</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>click</td>
      <td>JsxStackText=Confirm and Prompt Alerts*</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>click</td>
      <td>JsxButtonText=Confirm</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>assertJsxAlertOK</td>
      <td>Confirm Alert</td>
      <td>&nbsp;</td>
    </tr>    
    <tr>
      <td>click</td>
      <td>JsxButtonText=Prompt</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>assertJsxPromptOK</td>
      <td>Prompt Alert</td>
      <td>test</td>
    </tr>    
    <tr>
      <td>assertAlert</td>
      <td>test</td>
      <td>&nbsp;</td>
    </tr> 
       
    <tr>
      <td>click</td>
      <td>JsxButtonText=Confirm</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>chooseJsxCancelConfirmPrompt</td>
      <td>Confirm Alert</td>
      <td>&nbsp;</td>
    </tr>    
    <tr>
      <td>click</td>
      <td>JsxButtonText=Prompt</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>chooseJsxCancelConfirmPrompt</td>
      <td>Prompt Alert</td>
      <td>&nbsp;</td>
    </tr>    
    
    <tr>
      <td>assertElementPresent</td>
      <td>JsxStackText=Dialog Alert</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>clickJsxStack</td>
      <td>JsxStackText=Dialog Alert</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>clickJsxStack</td>
      <td>JsxStackName=stkServerAlert</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>click</td>
      <td>JsxButtonText=Alert</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>assertJsxAlertOK</td>
      <td>My Alert</td>
      <td>&nbsp;</td>
    </tr>    
    <!--tr>
      <td>click</td>
      <td>JsxButtonText=Alert without*</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>assertJsxAlertOK</td>
      <td>*showNoTitleServerAlert*</td>
      <td>&nbsp;</td>
    </tr-->  
    <!--tr>
      <td>jsxopen</td>
      <td>about:blank</td>
      <td>&nbsp;</td>
    </tr-->
  </tbody>

</table>
</body>
</html>
